import java.io.*;
import javax.servlet.*;
import javax.servlet.http.*;
import java.sql.*;

public class Hello extends HttpServlet {
		//jdbc 驱动名及数据库 URL
	
    private String message;

    public void init() throws ServletException
    {
			message = "hell world";
    }

	public void doGet(HttpServletRequest request,
			HttpServletResponse response)
		throws ServletException, IOException
		{
			response.setContentType("text/html");

			PrintWriter out = response.getWriter();
			out.println("<h1>"+message+"</h1>");
			destroy();

	}

    public void destroy()
    {
		System.out.println("Servlet destory");
		super.destroy();
    }
}
